Skip to content

WIP: Add imageSelect widget#33

Draft
MiggL wants to merge 1 commit intofarpenoodle:masterfrom
MiggL:master
Draft

WIP: Add imageSelect widget#33
MiggL wants to merge 1 commit intofarpenoodle:masterfrom
MiggL:master

Conversation

@MiggL
Copy link
Copy Markdown
Contributor

@MiggL MiggL commented Nov 2, 2022

Example use in layout file:
<imageSelect id="pChar1" x="10" y="330" width="64" height="64" optionWidth="32" optionHeight="32" optionsColumns="8" path="browserfiles/characters" defaultValue="Mario.png" />
This will display the image browserfiles/characters/Mario.png.

If you click this widget, it will let you choose any image in the specified path by previewing all images in a clickable grid. The chosen image's path will be written to the output file, relative to the output path.

Example use in layout file:
<imageSelect id="pChar1" x="10" y="330" width="64" height="64"
             optionWidth="32" optionHeight="32" optionsColumns="8"
             path="browserfiles/characters" defaultValue="Mario.png" />
This will display the image browserfiles/characters/Mario.png
If you click this widget, it will let you choose any image in the
specified path by previewing all images in a clickable grid.
The chosen image's path will be written to the output file, relative to
the output path.
@MiggL
Copy link
Copy Markdown
Contributor Author

MiggL commented Nov 2, 2022

I'm planning to add a subFolders=true option as well for grouping images in folders.
Something like a dropdown/combobox to select which folder to load images from.

@MiggL MiggL marked this pull request as draft November 2, 2022 19:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant